package com.amoyt.project.mapper;

import com.amoyt.project.domain.dto.query.AdminPageQuery;
import com.amoyt.project.domain.pojo.User;
import com.amoyt.project.domain.vo.AdminInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-08
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 查询管理员列表
     *
     * @param roleList 符合的角色权限列表
     * @param adminPageQuery 分页条件
     * @return
     */
    IPage<AdminInfoVo> queryAdminList(@Param("page") Page<AdminInfoVo> page, @Param("roleList")  List<String> roleList, @Param("dto") AdminPageQuery adminPageQuery);
}
